package org.boge.sharpdoc.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.boge.sharpdoc.bean.Administrator;

import java.util.List;

@Mapper
public interface AdministratorDao {
    public Integer findOfLogin(Administrator administrator);

    public Administrator findById(Integer id);

    public Integer updateInformation(Administrator administrator);

    public List<Administrator> findAll();

    public Integer updateStatus(@Param("adminid") Integer adminid, @Param("status") String status);

    public Integer addAdmin(Administrator administrator);
}